<template>
  <view>
     <view class="box" @click="showT">加载中</view>
    <view class="box" @click="showT6">隐藏</view>
  </view>
</template>

<script setup lang="js">
const showT = () => {
  uni.showLoading({
    title: '加载中....',
  });
}

const showT6 = () => {
  uni.hideLoading()
}

</script>


<style scoped lang="scss">
.box{
  height: 40px;
  width: 100%;
  background-color: red;
  margin-top: 10px;
  text-align: left;
  line-height: 40px;
}
</style>
